/*
 * Powered By Rubyliu
 * QQ:876181
 * Since 2012 - 2012
 */

package com.bzzoneit.newsys.dao.admin;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.session.RowBounds;

import com.bzzoneit.newsys.entity.admin.SchedulerJob;

/**
 * @author Ruby liu
 * @version 1.0
 * @since 1.0
 */
public interface SchedulerMapper extends IBaseMapper<SchedulerJob>
{
	Long findSchedulerPagecount(SchedulerJob scheduler);
	List<SchedulerJob> findSchedulerPage(RowBounds rowBounds,SchedulerJob scheduler);
	List<SchedulerJob> findAllScheduler();
	
	@Update("UPDATE t_scheduler SET STATUS = #{status} ")
	void modifyAllJobStatus(String status);
	
	@Update("UPDATE t_scheduler SET STATUS = #{status} where id=#{id}")
	void modifyJobStatus(@Param("id")long id,@Param("status")String status);
}
